package com.project.seckill.service;

import com.project.seckill.dao.entity.User;
import com.project.seckill.dao.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by yachao on 2018/6/24.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public User findUserById(Long id) {
        return userRepository.findUserById(id);
    }

    @Override
    public User findUserByTelephone(String telephone) {
        return userRepository.findUserByTelephone(telephone);
    }
}
